package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 上传审核素材
 * @author xiexuxin
 * @date 2023-12-03
 */
@Data
@TableName(value ="yx_upload_source_material_review")
@ApiModel(value = "上传审核素材" , description="yx_upload_source_material_review")
public class YxUploadSourceMaterialReviewEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "material_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="素材Id")
    private Long materialId;

    @TableField(value="material_name")
    @ApiModelProperty(value="素材名称")
    private String materialName;

    @TableField(value="material_url")
    @ApiModelProperty(value="上传路径")
    private String materialUrl;

    @TableField(value="user_id")
    @ApiModelProperty(value="上传人Id")
    private Long userId;

    @TableField(value="user_name")
    @ApiModelProperty(value="上传人名称")
    private String userName;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺Id")
    private Long shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="examine_status")
    @ApiModelProperty(value="审核状态 0-审核中 1-审核通过 2-审核失败 3-作废")
    private Integer examineStatus;

    @TableField(value="examine_user_id")
    @ApiModelProperty(value="审核人Id")
    private Long examineUserId;

    @TableField(value="examine_user_name")
    @ApiModelProperty(value="审核人名称")
    private String examineUserName;

    @TableField(value="examine_time")
    @ApiModelProperty(value="审核时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examineTime;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(value="examine_describe")
    @ApiModelProperty(value="审核描述")
    private String examineDescribe;

    @TableField(value="material_key")
    @ApiModelProperty(value = "素材在华为云的唯一标识key")
    private String materialKey;

    @TableField(value="sign")
    @ApiModelProperty(value = "个性签名")
    private String sign;

}
